import axios from "axios"
const instance = axios.create({
  baseURL:'https://www.linweiqin.cn/api/public/v1/'
});
// 请求的拦截
instance.interceptors.request.use(function (config) {
  return config;
}, function (error) {
  return Promise.reject(error);
});

// 响应的拦截
instance.interceptors.response.use(function (response) {

  return response.data.message;
}, function (error) {
  return Promise.reject(error);
});

export default instance